package com.ssh2.user.action;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import com.ssh2.common.hibernate.BaseService;
import com.ssh2.common.struts2.BaseAction;
import com.ssh2.user.entity.Banks;
import com.ssh2.user.service.UserService;

public class UserAction extends BaseAction{
	@Override
	public String execute() throws Exception {
		System.out.println("***********************");
		System.out.println(userService.findAll());
//		userService.login();
//		List<Banks> list = userService.findAll();
		
		return SUCCESS;
	}
	
	
	
	private UserService userService;
	
	public UserService getUserService() {
		return userService;
	}

	public void setUserService(UserService userService) {
		this.userService = userService;
	}
}
